import request from '@/utils/request'
import {
  parseStrEmpty
} from "@/utils/ruoyi";

var url = process.env.VUE_APP_SUM_PUB;

// 申请评测
export function add(data) {
  return request({
    url: '/evaluating/add',
    method: 'post',
    data: data
  })
}

// 版本类型
export function getGametype(data) {
  return request({
    url: '/evaluating/game_type',
    method: 'post',
    data: data
  })
}

// 版本分类
export function getGameClass(data) {
  return request({
    url: '/evaluating/game_class',
    method: 'post',
    data: data
  })
}


// 获取平台
export function getPlatform(data) {
  return request({
    url: url + '/game/platform/label-list',
    method: 'post',
    data: data
  })
}


//申请渠道
export function AppChannel(data) {
  return request({
    url: '/evaluating/app_channel',
    method: 'post',
    data: data
  })
}

// 子账号列表
export function getList(data) {
  return request({
    url: '/son-user/list',
    method: 'post',
    data: data
  })
}


// 子账号修改
export function update(data) {
  return request({
    url: '/son-user/update',
    method: 'post',
    data: data
  })
}


// 子账号删除
export function destroy(data) {
  return request({
    url: '/son-user/destroy',
    method: 'post',
    data: data
  })
}

